Optimal. Leaf size=24 \[ -\frac{(-a-b x)^{-n} (a+b x)^n}{x} \]
[Out]
_______________________________________________________________________________________
Rubi [A] time = 0.0114823, antiderivative size = 24, normalized size of antiderivative = 1., number of steps used = 2, number of rules used = 2, integrand size = 23, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.087 \[ -\frac{(-a-b x)^{-n} (a+b x)^n}{x} \]
Antiderivative was successfully verified.
[In] Int[(a + b*x)^n/(x^2*(-a - b*x)^n),x]
[Out]
_______________________________________________________________________________________
Rubi in Sympy [A] time = 3.72632, size = 17, normalized size = 0.71 \[ - \frac{\left (- a - b x\right )^{- n} \left (a + b x\right )^{n}}{x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] rubi_integrate((b*x+a)**n/x**2/((-b*x-a)**n),x)
[Out]
_______________________________________________________________________________________
Mathematica [A] time = 0.00450984, size = 24, normalized size = 1. \[ -\frac{(-a-b x)^{-n} (a+b x)^n}{x} \]
Antiderivative was successfully verified.
[In] Integrate[(a + b*x)^n/(x^2*(-a - b*x)^n),x]
[Out]
_______________________________________________________________________________________
Maple [A] time = 0.003, size = 25, normalized size = 1. \[ -{\frac{ \left ( bx+a \right ) ^{n}}{x \left ( -bx-a \right ) ^{n}}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] int((b*x+a)^n/x^2/((-b*x-a)^n),x)
[Out]
_______________________________________________________________________________________
Maxima [A] time = 1.36114, size = 14, normalized size = 0.58 \[ -\frac{\left (-1\right )^{-n}}{x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((b*x + a)^n/((-b*x - a)^n*x^2),x, algorithm="maxima")
[Out]
_______________________________________________________________________________________
Fricas [A] time = 0.239006, size = 12, normalized size = 0.5 \[ -\frac{\cos \left (\pi n\right )}{x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((b*x + a)^n/((-b*x - a)^n*x^2),x, algorithm="fricas")
[Out]
_______________________________________________________________________________________
Sympy [A] time = 20.2649, size = 17, normalized size = 0.71 \[ - \frac{\left (- a - b x\right )^{- n} \left (a + b x\right )^{n}}{x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((b*x+a)**n/x**2/((-b*x-a)**n),x)
[Out]
_______________________________________________________________________________________
GIAC/XCAS [F] time = 0., size = 0, normalized size = 0. \[ \int \frac{{\left (b x + a\right )}^{n}}{{\left (-b x - a\right )}^{n} x^{2}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((b*x + a)^n/((-b*x - a)^n*x^2),x, algorithm="giac")
[Out]